# _*_ coding: utf-8 _*_
from odoo import models, fields, api


class StockBackorderConfirmation(models.TransientModel):
    _inherit = "stock.backorder.confirmation"

    @api.multi
    def process_with_no_reserve(self):
        self._process()
        backorder_pick = self.env['stock.picking'].search([('backorder_id', '=', self.pick_id.id)])
        backorder_pick.do_unreserve()
